# Maintainer: Marian Buschsieweke <marian.buschsieweke@ovgu.de>
pkgname=py3-pygal
_pkgname=pygal
pkgver=3.0.0
pkgrel=5
pkgdesc="dynamic SVG charting library written in Python"
options="!check" # Requires unpackaged dependencies
url="https://www.pygal.org/en/stable/"
arch="noarch"
license="LGPL-3.0-or-later"
depends="py3-setuptools"
subpackages="$pkgname-pyc"
source="https://files.pythonhosted.org/packages/source/p/pygal/pygal-$pkgver.tar.gz"
builddir="$srcdir"/$_pkgname-$pkgver

replaces="py-pygal" # Backwards compatibility
provides="py-pygal=$pkgver-r$pkgrel" # Backwards compatibility

prepare() {
	default_prepare

	# Remove from setup_requires as we don't run tests
	sed -e "/'pytest-runner'/d" \
		-i setup.py
}

build() {
	python3 setup.py build
}

package() {
	python3 setup.py install --skip-build --root="$pkgdir"
}

sha512sums="
51ad847539ef8c0a092878c51c0c7f0aea4f7f1f30d8b9487997e4d9f4ad50d1af9d51cbdfebea0144d7675539c5af921994dea412ced691a0d3bb6beae1f86d  pygal-3.0.0.tar.gz
"
